
module.exports = {
  'POST /tree/add'(req, res) {
    const response = {
      code: 20000,
      data: 'success'
    }
    res.json(response)
  },
  'POST /tree/update'(req, res) {
    const response = {
      code: 20000,
      data: 'success'
    }
    res.json(response)
  },
  'POST /tree/del'(req, res) {
    const response = {
      code: 200,
      success: 'true',
      data: 'success'
    }
    res.json(response)
  },
  'GET /tree/get'(req, res) {
    const response = {
      code: 200,
      data: [{
        id: 3,
        text: '二级 2-1',
        leaf: true
      }, {
        id: 7,
        text: '三级 3-2-2',
        leaf: false
      }]
    }
    res.json(response)
  }

}
